
import Layout from "@/layout";

export default {
    path: "/goods",
    component: Layout,
    redirect: "/goods/goodsManage",
    alwaysShow: true, // will always show the root menu
    name: "goods",
    meta: {
        title: "商品信息模块",
        icon: "article"
    },
    children: [
        {
            path: "/goods/goodsManage",
            component: () => import("@/views/goodsManage/goodsManage.vue"),
            name: "goodsManage",
            meta: { title: "商品信息管理", icon: "role" }
        },
        {
            path: "/goods/addGoods",
            component: () => import("@/views/goodsManage/goodsAdd.vue"),
            name: "goodsAdd",
            meta: { title: "商品添加", icon: "role" }
        },
        {
            path: "/goods/goodsManage/brandManage",
            component: () => import("@/views/goodsManage/brandManage/brandManage.vue"),
            name: "brandManage",
            meta: { title: "品牌管理", icon: "role" }
        },
        {
            path: "/goods/goodsManage/categoryManage",
            component: () => import("@/views/goodsManage/categoryManage/categoryManage.vue"),
            name: "categoryManage",
            meta: { title: "分类管理", icon: "role" }
        },
        {
            path: "/goods/goodsManage/attrKeyManage",
            component: () => import("@/views/goodsManage/attrKeyManage/attrKeyManage.vue"),
            name: "attrKeyManage",
            meta: { title: "属性名管理", icon: "role" }
        }
    ]
};